function deleteArticle(idx)
{
    var url = '/index.php?controller=write&method=delete&idx=' + idx;
    
    if (confirm('삭제하시겠습니까')) {
        location.href = url;
    }
}